﻿<%@ Page Language="C#" MasterPageFile="~/Template/Edit.master" AutoEventWireup="true"
    CodeFile="NewTrainCredit.aspx.cs" Inherits="Page_NewTrainCredit" Title="Untitled Page" %>

<%@ Register Src="~/Control/ListHeader.ascx" TagName="ListHeader" TagPrefix="wsc" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <link type="text/css" href="../css/smoothness/jquery-ui-1.7.2.custom.css" rel="stylesheet" />

    <script type="text/javascript" src="../Js/jquery-1.3.2.min-vsdoc.js"></script>

    <script type="text/javascript" src="../Js/jquery-1.3.2.min.js"></script>

    <script type="text/javascript" src="../Js/jquery-ui-1.7.2.custom.min.js"></script>

    <script type="text/javascript" src="../My97DatePicker/WdatePicker.js"></script>

    <script type="text/javascript">
        function refreshParent() {
            try {
                window.opener.document.getElementById('ctl00$ListToolBarPlaceHolder$btnRefresh').click();
            }
            catch (e) {
            }
        }
        
    </script>

    <style type="text/css">
        .TextArea01
        {
            height: 70px;
            width: 80%;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ToolBarContentPlaceHolder" runat="Server">
    <table border="0" cellspacing="0" cellpadding="2">
        <tr>
            <td class="ToolMenuEdit">
                <div class="Normal" oldclass="Normal" onmouseover="OverChangeClass(this);" onmouseout="ReturnClass(this)">
                    <asp:LinkButton runat="server" ID="lbtnSave" OnClick="lbtnSave_Click">
                    <span><img src="../Images/Icon/Object/tz-add.gif" /></span><span>保存</span></asp:LinkButton>
                </div>
            </td>
            <td class="Fg" id="tdDeleteFg" runat="server">
                <img src="../Images/FgLine.gif" alt="" />
            </td>
            <td class="ToolMenuEdit">
                <div class="Normal" oldclass="Normal" onmouseover="OverChangeClass(this);" onmouseout="ReturnClass(this)"
                    onclick="window.close();">
                    <span>
                        <img src="../Images/Icon/Action/delete.gif" alt="关闭" /></span><span>关闭</span>
                </div>
            </td>
            <td>
            </td>
        </tr>
    </table>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="FieldContentPlaceHolder" runat="Server">
    <div style="display: none">
        <asp:TextBox runat="server" ID="tbClassID"></asp:TextBox>
        <asp:TextBox runat="server" ID="tbOrderInfo"></asp:TextBox>
        <div id="dialog" title="增加班次" class="ui-dialog">
            <table id="Table1" border="0" style="height: 50px;" cellspacing="0" cellpadding="0"
                class="FormTable tablefix" width="100%">
                <tr>
                    <td class="FieldName">
                        <span>&nbsp;班次信息：</span>
                    </td>
                    <td class="FieldInput">
                        <input type="text" id="textOrderInfo" class="TextArea01" />
                    </td>
                </tr>
                <tr>
                    <td colspan="2">
                        <input type="button" onclick="addInfo()" value="增加" />
                    </td>
                </tr>
            </table>
        </div>
    </div>
    <table id="commandTable" border="0" cellspacing="0" cellpadding="0" class="FormTable"
        width="100%">
        <tr>
            <td class="FieldName">
                <span>&nbsp;班级名称：</span>
            </td>
            <td class="FieldInput" colspan="3">
                <asp:TextBox ID="tbCreditName" runat="server" Width="80%" CssClass="Textbox01"></asp:TextBox>
                &nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="tbCreditName"
                    ErrorMessage="班级名称不能为空！"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="FieldName">
                <span>&nbsp;开始时间：</span>
            </td>
            <td class="FieldInput" width="120">
                <asp:TextBox onClick="WdatePicker()" CssClass="Textbox01" ID="tbBeginTime" runat="server"></asp:TextBox>
            </td>
            <td class="FieldName">
                <span>&nbsp;结束时间：</span>
            </td>
            <td>
                <asp:TextBox onClick="WdatePicker()" CssClass="Textbox01" ID="tbEndTime" runat="server"></asp:TextBox>
                &nbsp;<asp:CompareValidator runat="server" ID="compareValidator" Display="Dynamic" ControlToCompare="tbBeginTime"
                    ControlToValidate="tbEndTime" ErrorMessage="结束时间须晚于开始时间!" Operator="GreaterThanEqual"></asp:CompareValidator>
            </td>
        </tr>
        <tr>
            <td class="FieldName">
                <span>&nbsp;培训天数：</span>
            </td>
            <td class="FieldInput" colspan="3">
                <asp:TextBox ID="tbTrainDayCount" MaxLength="50" runat="server" CssClass="Textbox01"></asp:TextBox>
                &nbsp;
                <asp:RegularExpressionValidator runat="server" ID="revTrainDayCount" ErrorMessage="请输入正数！"
                    ControlToValidate="tbTrainDayCount" ValidationExpression="([1-9]\d*((.\d+)*))|(0.\d+)"></asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <td class="FieldName">
                <span>&nbsp;培训层级：</span>
            </td>
            <td class="FieldInput" colspan="3">
                <asp:DropDownList ID="ddlTrainLevel" runat="server">
                    <asp:ListItem Text="请选择" Value="请选择" Selected="True"></asp:ListItem>
                    <asp:ListItem Text="国家级" Value="国家级"></asp:ListItem>
                    <asp:ListItem Text="市级" Value="市级"></asp:ListItem>
                    <asp:ListItem Text="区级" Value="区级"></asp:ListItem>
                    <asp:ListItem Text="其他" Value="其他"></asp:ListItem>
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td class="FieldName">
                <span>&nbsp;主办单位：</span>
            </td>
            <td class="FieldInput" colspan="3">
                <asp:TextBox ID="tbHostUnit" runat="server" MaxLength="200" CssClass="Textbox01"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="FieldName">
                <span>&nbsp;课程学分：</span>
            </td>
            <td class="FieldInput" colspan="3">
                <asp:TextBox ID="tbCourseScore" runat="server" CssClass="Textbox01"></asp:TextBox>
                &nbsp;<asp:RegularExpressionValidator ID="revScore" runat="server" ControlToValidate="tbCourseScore"
                    ErrorMessage="请输入数字，例如1,2,3...！" ValidationExpression="([1-9]\d*((.\d+)*))|(0.\d+)"></asp:RegularExpressionValidator>
            </td>
        </tr>
    </table>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="DescriptionContentPlaceHolder" runat="Server">
    <div class="EditPageForm" style="height: 100%;">
        <table id="Table2" border="0" style="height: 200px;" cellspacing="0" cellpadding="0"
            class="FormTable tablefix" width="100%">
            <tr style="display: none;">
                <td class="FieldName">
                    <span>&nbsp;主要内容：</span>
                </td>
                <td class="FieldInput">
                    <asp:TextBox ID="tbMainContent" runat="server" TextMode="MultiLine" CssClass="TextArea01"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="FieldName">
                    <span>&nbsp;备&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;注：</span>
                </td>
                <td class="FieldInput">
                    <asp:TextBox ID="tbComment" runat="server" TextMode="MultiLine" CssClass="TextArea01"></asp:TextBox>
                </td>
            </tr>
        </table>
    </div>
</asp:Content>
